﻿
@{
    Layout = null;
}
@model List<OneStationFile.Model.Modular>
<div class="navbar-default sidebar" role="navigation">
    <div class="sidebar-nav navbar-collapse">
        <ul class="nav" id="side-menu">

            @*<li class="sidebar-search">
                <div class="input-group custom-search-form">
                    <input type="text" class="form-control" placeholder="Search...">
                    <span class="input-group-btn">
                        <button class="btn btn-default" type="button">
                            <i class="fa fa-search"></i>
                        </button>
                    </span>
                </div>
            </li>*@
            @foreach (var modular in Model)
            {
                <li>
                    <a href="#"><i class="fa fa-windows fa-fw"></i> @modular.Name<span class="fa arrow"></span></a>
                    <ul class="nav nav-second-level">
                       @if (modular.Nodes != null)
                       {
                            foreach (var node in modular.Nodes)
                            {
                                <li>
                                    <a href="@node.Url">@node.Name</a>
                                </li>
                            }
                       }

                    </ul>
                    <!-- /.nav-second-level -->
                </li>
            }
        </ul>

    </div>
    <!-- /.sidebar-collapse -->
</div>
